package com.example.bean;

import java.util.Date;

public class News {
    private Integer news_id;
    private String news_title;
    private String context;
    private Date time;

    public News() {
    }

    public News(Integer news_id, String news_title, String context, Date time) {
        this.news_id = news_id;
        this.news_title = news_title;
        this.context = context;
        this.time = time;
    }

    public Integer getNews_id() {
        return news_id;
    }

    public void setNews_id(Integer news_id) {
        this.news_id = news_id;
    }

    public String getNews_title() {
        return news_title;
    }

    public void setNews_title(String news_title) {
        this.news_title = news_title;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "News{" +
                "news_id=" + news_id +
                ", news_title='" + news_title + '\'' +
                ", context='" + context + '\'' +
                ", time=" + time +
                '}';
    }
}
